package com.aoip.telemetry.telemetry.configureui.business.order.cases.service;

import com.aoip.telemetry.telemetry.entity.order.OrderBaseEntity;
import com.aoip.telemetry.telemetry.entity.order.RelOrderStEntity;

import java.util.List;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/2/22 16:52
 */
public interface OrderCaseService {
    /**
     * 查询指令实例信息列表数据
     *
     * @param entity 指令实例
     * @return java.util.List<com.aoip.telemetry.telemetry.entity.order.OrderBaseEntity>
     * @author chenbai
     * @date 2022/2/22
     **/
    List<OrderBaseEntity> list(OrderBaseEntity entity);

    /**
     * 查询指令实例信息单条数据
     *
     * @param id 指令主键
     * @return java.util.List<com.aoip.telemetry.telemetry.entity.order.OrderBaseEntity>
     * @author chenbai
     * @date 2022/2/22
     **/
    OrderBaseEntity order(String id);

    /**
     * 新增指令实例信息表数据
     *
     * @param entity 指令实例
     * @return java.util.List<com.aoip.telemetry.telemetry.entity.order.OrderBaseEntity>
     * @author chenbai
     * @date 2022/2/22
     **/
    int insert(OrderBaseEntity entity, List<RelOrderStEntity> relOrderSt);

    /**
     * 修改指令实例信息表数据
     *
     * @param entity 指令实例
     * @return java.util.List<com.aoip.telemetry.telemetry.entity.order.OrderBaseEntity>
     * @author chenbai
     * @date 2022/2/22
     **/
    int update(OrderBaseEntity entity, List<RelOrderStEntity> relOrderSt);

    /**
     * 逻辑删除指令实例
     *
     * @param ids 主键编码
     * @author chenbai
     * @date 2022/2/22
     **/
    void delete(long[] ids);
}
